package work3;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        TV t = new TV();
        RemoteControl r = new RemoteControl();


    }
}

 class TV {
    private String name;

    public void play(String channel){
        System.out.println("xx电视正在播放xxx节目");
    }

    public TV() {
    }

    public TV(String name) {
        this.name = name;
    }
}


 class RemoteControl extends  TV{
    Scanner sc = new Scanner(System.in);

    public void controlTV(TV tv){
        System.out.println("遥控器控制电视");
        tv.play("sc");
    }
 }